<template>
  <div>
      <TypeNav></TypeNav>
      <ListContainer></ListContainer>
      <TodayRecommend></TodayRecommend>
      <Rank></Rank>
      <Like></Like>
      <Floor v-for="(floor,index) in floorList" :key="floor.id" :floorInfo="floor"></Floor>
      <Brand></Brand>
  </div>
</template>

<script>
import {mapState} from 'vuex'
import ListContainer from './ListContainer'
import TodayRecommend from './TodayRecommend'
import Like from './Like'
import Rank from './Rank'
import Floor from './Floor'
import Brand from './Brand'
  export default {
    name:'Home',
    components:{
      ListContainer,
      TodayRecommend,
      Rank,
      Like,
      Floor,
      Brand
    },
    mounted(){
      this.$store.dispatch('getFloorList');
 
    },
    computed:{
      ...mapState({
        floorList:state=>{
          return state.home.floorList
        }
      })
    }
  }
</script>

<style scoped>
  
</style>